Optimal. Leaf size=24 \[ \frac {\text {Li}_2\left (1-\frac {2 a}{a+b x}\right )}{2 a b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {2449, 2352}
\begin {gather*} \frac {\text {PolyLog}\left (2,1-\frac {2 a}{a+b x}\right )}{2 a b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2352
Rule 2449
Rubi steps
\begin {align*} \int \frac {\log \left (\frac {2 a}{a+b x}\right )}{a^2-b^2 x^2} \, dx &=\frac {\text {Subst}\left (\int \frac {\log (2 a x)}{1-2 a x} \, dx,x,\frac {1}{a+b x}\right )}{b}\\ &=\frac {\text {Li}_2\left (1-\frac {2 a}{a+b x}\right )}{2 a b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 27, normalized size = 1.12 \begin {gather*} \frac {\text {Li}_2\left (\frac {-a+b x}{a+b x}\right )}{2 a b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.72, size = 20, normalized size = 0.83
method | result | size |
derivativedivides | \(\frac {\dilog \left (\frac {2 a}{b x +a}\right )}{2 b a}\) | \(20\) |
default | \(\frac {\dilog \left (\frac {2 a}{b x +a}\right )}{2 b a}\) | \(20\) |
risch | \(\frac {\dilog \left (\frac {2 a}{b x +a}\right )}{2 b a}\) | \(20\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 120 vs.
\(2 (21) = 42\).
time = 0.30, size = 120, normalized size = 5.00 \begin {gather*} \frac {1}{4} \, b {\left (\frac {\log \left (b x + a\right )^{2} - 2 \, \log \left (b x + a\right ) \log \left (b x - a\right )}{a b^{2}} + \frac {2 \, {\left (\log \left (b x + a\right ) \log \left (-\frac {b x + a}{2 \, a} + 1\right ) + {\rm Li}_2\left (\frac {b x + a}{2 \, a}\right )\right )}}{a b^{2}}\right )} + \frac {1}{2} \, {\left (\frac {\log \left (b x + a\right )}{a b} - \frac {\log \left (b x - a\right )}{a b}\right )} \log \left (\frac {2 \, a}{b x + a}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 21, normalized size = 0.88 \begin {gather*} \frac {{\rm Li}_2\left (-\frac {2 \, a}{b x + a} + 1\right )}{2 \, a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \frac {\log {\left (2 \right )}}{- a^{2} + b^{2} x^{2}}\, dx - \int \frac {\log {\left (\frac {a}{a + b x} \right )}}{- a^{2} + b^{2} x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.28, size = 19, normalized size = 0.79 \begin {gather*} \frac {{\mathrm {Li}}_{\mathrm {2}}\left (\frac {2\,a}{a+b\,x}\right )}{2\,a\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________